﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Drive.LiveChat.Model
{
    public class Conversation
    {
        public long Id { get; set; }
        /// <summary>
        /// 已知用户
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 访客
        /// </summary>
        public long VisitorId { get; set; }

        /// <summary>
        /// 渠道Id
        /// </summary>
        public int ChannelId { get; set; }

        public string PrevAgentId { get; set; }

        /// <summary>
        /// 最近一次消息时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        public DateTime? AgentLastSendTime { get; set; }
        public DateTime? VisitorLastSendTime { get; set; } 

        public string LastSendBy { get; set; }
        public string LastSendContent { get; set; }

        public int AgentSendQty { get; set; }

        public int VisitorSendQty { get; set; }

        public int AgentId { get; set; }

        public string Ip { get; set; }
        /// <summary>
        /// 首次消息时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        public DateTime? EndTime { get; set; }
        public string EndReason { get; set; }
        /// <summary>
        /// 客服主动关闭时，填写该字段
        /// </summary>
        public int EndByAgentId { get; set; }
        public long VisitId { get; set; }
    }
}
